home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / hacky_sack_jr.swf / scripts / DefineButton2_396 / BUTTONCONDACTION on(release, keyPress 0).as
Text File  |  2011-08-19  |  653b  |  39 lines

  1. on(release, keyPress "0"){
  2.    set("/:losewait","0");
  3.    if(eval("/:home") == "1")
  4.    {
  5.       r = random("7");
  6.       if(r == "1")
  7.       {
  8.          getUrl("apple.shtml", "");
  9.       }
  10.       if(r == "2")
  11.       {
  12.          getUrl("boy.shtml", "");
  13.       }
  14.       if(r == "3")
  15.       {
  16.          getUrl("car.shtml", "");
  17.       }
  18.       if(r == "4")
  19.       {
  20.          getUrl("duck.shtml", "");
  21.       }
  22.       if(r == "5")
  23.       {
  24.          getUrl("egg.shtml", "");
  25.       }
  26.       if(r == "6")
  27.       {
  28.          getUrl("fig.shtml", "");
  29.       }
  30.    }
  31.    else
  32.    {
  33.       tellTarget("/")
  34.       {
  35.          gotoAndPlay(1);
  36.       }
  37.    }
  38. }
  39.